home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / MailEnclosure / Source.v0.15 / FileShelfView.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  58 lines

  1. #import <appkit/appkit.h>
  2.  
  3. @interface FileShelfView:View
  4. {
  5.    id images;
  6.    id fileNames;
  7.    id singleNames;
  8.    int dragIndex;
  9.    float titleWidth;
  10.    BOOL enabled;
  11.    BOOL nameListDirty;
  12.    BOOL showNames;
  13. }
  14.  
  15. - initFrame:(const NXRect *)rect;
  16. - free;
  17. - empty;
  18.  
  19. - fileNames;                     /* get filenames as single files */
  20. - addFile: (const char *)filename;         /* add file(s) - multiples should be \t spaced */
  21.  
  22. - setEnabled: (BOOL)flag;             /* set the shelf enabled - so it can accept files */
  23. - (BOOL) enabled;                 
  24.  
  25. - setShowNames: (BOOL) flag;             /* should it show file names? */
  26. -(BOOL) showNames;
  27.  
  28. - setTitleWidth: (float) aWidth;         /* how many fixels wide is the slot for each icon - 50 is the minimum */
  29. - (float) titleWidth;
  30.  
  31. - drawSelf:(NXRect *)rect :(int) count;
  32. - mouseDown: (NXEvent *)anEvent;
  33.  
  34. @end
  35.  
  36.  
  37. /*
  38.  * NXDraggingSource category. 
  39.  */
  40. @interface FileShelfView (FSVNXDraggingSource)
  41. - (NXDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal;
  42. - draggedImage:(NXImage *)image endedAt:(NXPoint *)screenPoint deposited:(BOOL)didDeposit;
  43. - (BOOL)ignoreModifierKeysWhileDragging;
  44. @end
  45.  
  46.  
  47. /*
  48.  * NXDraggingDestination category. 
  49.  */
  50. @interface FileShelfView (FSVNXDraggingDestination) 
  51. - (NXDragOperation)draggingEntered:(id <NXDraggingInfo>)sender;
  52. - draggingExited:(id <NXDraggingInfo>)sender;
  53. - (BOOL)performDragOperation:(id <NXDraggingInfo>)sender;
  54. - concludeDragOperation:(id <NXDraggingInfo>)sender;
  55. - (BOOL)prepareForDragOperation:(id <NXDraggingInfo>)sender;
  56. @end
  57.  
  58.